import 'package:flutter/material.dart';

class SecondPage extends StatefulWidget {
  @override
  _SecondPageState createState() => _SecondPageState();
}

class _SecondPageState extends State<SecondPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text("这是第二个页面")),
        body: Center(
            child: FlatButton(
          child: Text('这是第一个页面'),
          onPressed: () {
            Navigator.of(context).pop();
          },
        )));
  }
}
